#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>


int main(int argc,char **argv)
{
	if(argc != 2)
	{
		printf("Usage: %s <file>\n",argv[0]);
		return -1;
	}

	int fd = open(argv[0],O_RDONLY);
	printf("fd = %d\n",fd);
	while(1)
	{
		sleep(100);
	}
	return 0; 
}


